<!DOCTYPE html>
<html>
<!--Made By kailuosoft.com, TEL 171 9992 9517 -->
<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>凯络科技后台管理系统</title>
    <meta name="keywords" content="">
    <meta name="description" content="">

     <link rel="shortcut icon" href="favicon.ico"> <link href="__PUBLIC__/css/bootstrap.min14ed.css?v=3.3.6" rel="stylesheet">
    <link href="__PUBLIC__/css/font-awesome.min93e3.css?v=4.4.0" rel="stylesheet">
    <link href="__PUBLIC__/css/plugins/iCheck/custom.css" rel="stylesheet">
    <link href="__PUBLIC__/css/animate.min.css" rel="stylesheet">
    <link href="__PUBLIC__/css/style.min862f.css?v=4.1.0" rel="stylesheet">
	<link href="__PUBLIC__/css/page.css" rel="stylesheet">
    <link href="__PUBLIC__/css/new.css" rel="stylesheet">
	<script src="__PUBLIC__/js/jquery.min63b9.js?v=2.1.4"></script>
    <script src="__PUBLIC__/js/plugins/layer/layer.min.js"></script>
</head>
<body class="gray-bg">
    <div class="wrapper wrapper-content animated fadeInRight">
        <div class="row">
            <div class="col-sm-12">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                           <h5>订单编辑</h5>
                    </div>
                    <div class="ibox-content"  style="overflow:hidden;">
                    <form class="form-horizontal m-t" id="commentForm" action="" method="post">
							
                            <div class="form-group">
                            <label class="col-sm-2 control-label"></label>
                            <div class="col-sm-10">
                              		 <b>客户名称：<b>
                                
                                    <input id="name" name="customer_name" type="text" class="form-control input-sm width200 inline" value='{$info.customer_name}' readonly >
                               
                                	&nbsp;&nbsp;<b>订 单 号 ：<b>
                                    <input id="name" name="order_number" type="text" class="form-control input-sm width200 inline" value='{$info.order_number}' readonly >
                                </div>
                            </div>
                            
                            <div class="form-group">
                            <label class="col-sm-2 control-label"></label>
                            <div class="col-sm-10">
                              		 <b>收 货 人 ：<b>
                                
                                    <input id="name" name="consignee" type="text" class="form-control input-sm width200 inline" value='{$info.consignee}'>
                               
                                	&nbsp;&nbsp;<b>客户邮件：<b>
                               
                                    <input id="name" name="email" type="text" class="form-control input-sm width200 inline" value='{$info.email}'>
                                </div>
                            </div>
                            
                            <div class="form-group">
                            <label class="col-sm-2 control-label"></label>
                            <div class="col-sm-10">
                              		 <b>客户电话：<b>
                                
                                    <input id="name" name="phone" type="text" class="form-control input-sm width200 inline" value='{$info.phone}'>
                               
                                	<!--&nbsp;&nbsp;<b>下单日期：<b>
                               
                                    <input id="name" name="order_date" type="text" class="form-control input-sm width200 inline" value=''>-->
                                    <b>&nbsp;&nbsp;运 费 ($)：<b>
                                
                                    <input id="name" name="feright" type="text" class="form-control input-sm width200 inline" value='{$info.feright}'>
                                </div>
                            </div>
                            <div class="form-group">
                            <label class="col-sm-2 control-label"></label>
                            <div class="col-sm-10">
                              		 <!--<b>收货地址：<b>
                                
                                    <input id="name" name="address" type="text" class="form-control input-sm width200 inline" value=''>-->
                               
                                	<b>折 扣 率 ：<b>
                               
                                    <input id="name" name="discount_rate" type="text" class="form-control input-sm width200 inline" value='{$info.discount_rate}'>
                                    
                                    <b>&nbsp;收款方式 ：<b>
                                    <select class="form-control  width200 inline" name="payment_method">
                                    <foreach name="pay_list" item="payment">
                                        <option value='{$payment.id}' <if condition="$payment['id'] eq $info['pay_id']">selected</if> >{$payment.payment_method}</option>
                                    </foreach>
                                    </select>
                                </div>
                            </div>
                            <div class="form-group">
                            <label class="col-sm-2 control-label"></label>
                            <div class="col-sm-10">
                              		 <!--<b>运 费 ($)：<b>
                                
                                    <input id="name" name="feright" type="text" class="form-control input-sm width200 inline" value=''>-->
                               
                                	
                                    <b>收货地址：<b>
                                    
                                   <input id="name" name="address" type="text" class="form-control input-sm inline" value='{$info.address}' style="width:480px;">
                                </div>
                            </div>
                            
                            <div class="form-group">
                                <label class="col-sm-2 control-label"></label>
                                <div class="col-sm-10" style="margin-left:255px;">
                                    <textarea class="form-control input-sm"  style=" width:600px;height:150px; inline　resize:none;" name="orders_information"></textarea>
                                </div>
                            </div>
                            
                            
                            <div class="form-group">
                                <div class="col-sm-4 col-sm-offset-3">
                                	<input type="submit" value='提交'  class="btn btn-primary"  name='submit'/>
                                   <!--<span class="btn btn-primary" id='submit'>提交</span>-->
                                   <input type='reset' class="btn btn-primary">
                                    <a class="btn btn-primary" href='javascript:history.back(-1)'>返回</a>
                                </div>
                            </div>
                            
                      </div>
                      </form>
                      <div class="ibox-content" style="border-style:none;">
                            <div class="col-sm-10"> 
                            	<div style=" height:600px; overflow:auto; margin-bottom:20px;">
                                <table class="table table-bordered table-striped table-hover" style="width:100%">
                                    <thead >
                                        <tr>
                                            <th class="sort-column name" rowspan="3">订单号</th>
                                            <th class="sort-column name">订单生成时间</th>
                                            <th class="sort-column name">客户名称</th>
                                            <th class="sort-column name">SKU</th>
                                            <th class="sort-column name">产品类型</th>
                                            <th class="sort-column name">产品材质</th>
                                            <th class="sort-column name">销售价格</th>
                                            <if condition = "$acc_type.look_details eq '1'">
                                            <th class="sort-column name">采购单价</th>
                                            </if>
                                            <th class="sort-column name">订单所需数量</th>
                                            <th class="sort-column name">操作</th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                    <form method="post" action="">
                                    
                                    <foreach name="order_info" item="info" key="k">
                                        <tr text-align="center">	
                                       		<if condition=" $k eq '0'">
                                            <td rowspan="{$count}">{$info.order_number}</td>
                                            <td rowspan="{$count}"><!--{$info.order_date}-->
                                            	<?php echo date("Y-m-d",strtotime($order_info[$k]['order_date']));?>
                                            </td>
                                            <td rowspan="{$count}">{$info.customer_name}</td>
                                            </if>
                                            <td>
                                            <input type="hidden" value="{$info.id}" class="form-control" style="text-align:center;" name="id[]"></input>
                                            <input type="hidden" value="{$info.sku}" class="form-control" style="text-align:center;" name="sku[]"></input>
                                            <input type="hidden" value="{$info.order_number}" class="form-control" style="text-align:center;" name="order_number"></input>
                                            {$info.sku}
                                           	</td>
                                            <td>{$info.product_type}</td>
                                            <td>{$info.product_material}</td>
                                            <td>
                                                <input type="text" value="{$info.purchase_price}" name="purchase_price[]" class="form-control" style="text-align:center;"></input>
                                            </td>
                                            <if condition = "$acc_type.look_details eq '1'">
                                            <td>
                                                {$info.cost_price}
                                            </td>
                                            </if>
                                            <td>
                                            <input type="text" value="{$info.quantity}" name="quantity[]" class="form-control" style="text-align:center;"></input>
                                            </td>
                                            <td>
                                            <!--<input type="submit" class="btn btn-lg btn-primary abc" value="删除" name="dele[]"></input>-->
                                            <button type="submit" class="btn btn-sm btn-primary sku" name="dele" value="{$info.id}" sku = "{$info.details.sku}"> 删除</button>
                                           		<!--<input type="text" class="btn btn-lg btn-primary" value="删除" name="{$result.sku}" href="{:U('order_dele',array('id'=>$order['id']))}"></input>-->
                                            </td>
                                       </tr>
                                    </foreach> 	
                                       <tr>
                                       		<td colspan="9">
                                            	<input type="submit" class="btn btn-lg btn-primary sku" value="保存" name="edit"></input>
                                                
                                            </td>
                                       </tr>
                                    </form>        
                                    </tbody>
                                </table>
                                
                                </div>  
                        	</div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <script src="__PUBLIC__/js/jquery.min63b9.js?v=2.1.4"></script>
	<script src="__PUBLIC__/js/bootstrap.min14ed.js?v=3.3.6"></script>
    <script src="__PUBLIC__/js/plugins/peity/jquery.peity.min.js"></script>
    <script src="__PUBLIC__/js/content.mine209.js?v=1.0.0"></script>
    <script src="__PUBLIC__/js/plugins/iCheck/icheck.min.js"></script>
    <script src="__PUBLIC__/js/demo/peity-demo.min.js"></script>
    
    <script src="__PUBLIC__/js/plugins/layer/laydate/laydate.js"></script>
    <script src="__PUBLIC__/js/plugins/jquery.tablesort.min.js"></script>
	<script>
    $(".sku").click(function(){
		var sku = $(this).attr("sku");
		
	})
	
	
    </script>

</body>
<!--Made By kailuosoft.com, TEL 171 9992 9517 -->
<script  type="text/javascript"  src="http://g.tbcdn.cn/sj/securesdk/0.0.3/securesdk_v2.js"  id="J_secure_sdk_v2" data-appkey="23416550"></script>
</html>
